/**
 * 充值列表 add by gsh
 */
$(function() {
	// 全选
	$("#chkAll").change(function() {
		var chkStatus = $(this).is(":checked");
		$("[id^=chk]:not(#chkAll)").each(function() {
			this.checked = chkStatus;
		});
	});

});

function getChecked() {
	var map = $("[id^=chk]:not(#chkAll)").map(function() {
		if (this.checked)
			return this.value;
	});
	return map.get();
}

function viewUser(id) {
	var index = msgWnd.open({
		title : "查看用户信息",
		skin : 'layui-layer-lan',
		type : 2,
		shade : 0.5,
		area : [ "510px", "550px" ],
		maxmin : true,
		content : '/user/view/' + id,
		zIndex : layer.zIndex
	});	
}
function selDateRange() {
	var index = msgWnd.open({
		title : "选择查询日期",
		skin : 'layui-layer-lan',
		type : 2,
		shade : 0.5,
		area : [ "510px", "220px" ],
		maxmin : true,
		content : '/views/pages/ddl/ddlDateRange.jsp',
		zIndex : layer.zIndex
	});	
	msgWnd.selectResultCallBack=function(val){
		$("#exportForm").find("[name=createTime]").val(val.time1);
		$("#exportForm").find("[name=createTime1]").val(val.time2);
		$('#exportForm').submit();
	};	
}
function exportDat(){
	var el=$("#qryCond").html();
	var frm = $("#exportForm").html(el);
	frm.hide();
	frm.submit();
}